home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
Symbols
/
Chords
/
put-inside-n-octave
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-22
|
515b
|
19 lines
put-inside-n-octave
symbols low high &optional (scale-length 12)
transposes all symbols outside range of low and high into
range between low and high with optional scale-length
which defaults to 12 (chromatic)
(setq symbols '(abcd efgh -i-j-k-l mno pq r = stu -v-x z))
(put-inside-n-octave symbols 'a 'm)
->(abcd efgh edcb mbc de f = ghi db b)
(put-inside-n-octave symbols '-j 'o)
->(abcd efgh -i-jcb mno de f = ghi -jb n)
(put-inside-n-octave symbols '-j 'o 7)
->(abcd efgh -i-j-d-e mno ij k = lmn -h-j l)